﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.Kardex.Show
{
    public class PresenterShowKardex
    {
        IShowKardexBasicView viewShowBasic;
        Model.Kardex ShowKardex;
        IShowKardexView view;
        public PresenterShowKardex(IShowKardexView View, Model.Kardex Kardex)
        {
            view = View;
            ShowKardex = Kardex;
        }


        public void GoStepTwo()
        {
            view.CallSecondPage();
            ProcedureAfterCall();
        }

        public void GoBackPage()
        {
            viewShowBasic.GoBackPage();
        }

        public void GoNextPage()
        {
            viewShowBasic.GoNextPage();
        }
        public void GoStepOne()
        {
            view.CallFirstPage();
            ProcedureAfterCall();
        }

        private void ProcedureAfterCall()
        {

            viewShowBasic = view.ShowBasic;
            viewShowBasic.KardexToShow = ShowKardex;
            viewShowBasic.Update();
        }
    }
}
